<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>log</title>
    <link rel="stylesheet" href="./css/reg.css">
    <link rel="stylesheet" href="./css/icon.css">
    <link rel="stylesheet" href="//at.alicdn.com/t/font_2895829_t6g0qwzdfj.css">
    <script src="./js/axios.js"></script>
    <script src="./js/jquery.js"></script>
    <script src="./js/layer/layer.js"></script>

</head>
<body>

 <!-- 顶部导航栏 -->
 <div class="TopNav clearfix">
    <div class="TopNav-center center clearfix">
        <ul class="fl ul-fl">
            <li >
                <a href="">
                    <span class="icon-start"></span>
                    收藏花礼网(hua.com)
                </a>
            </li>

            <li >
                <a href="">
                    <span class="icon-wechat"></span> 关注微信
                </a>
                <div class="dropdown-box">
                    <img src="./image/wxguanjia_qrcode.png" width="124" >
                    <p>扫码关注<br>回复"礼物" 更多惊喜！</p>
                </div>
            </li>

            <li >
                <a href="">
                    <span class="icon-flower"></span> 花礼网app
                </a>
                <div class="dropdown-box">
                    <img src="./image/app_download_qrcode_2021.png" width="124">
                    <p>新人专享100元APP礼包</p>
                </div>
            </li>
        </ul>
        <ul class="fr ul-fr">
            <li>
                <a href="/" rel="nofollow" id="btn-login">您好，请登录  </a>&nbsp; <!--登录 -->
                &nbsp;<a href="./reg.html" rel="nofollow" id="btn-reg">  注册</a><!--注册 -->
            </li>

            <li >
                <a href="#" rel="nofollow" id="btn-login">订单查询</a>
                
            </li>

            <li >
                <a href="#" rel="nofollow" id="btn-login">
                    客户服务 
                    <span class="arrow"></span>
                </a>
                <div class="dropdown-box dropdown-box-service">
                    <a href="" target="_blank">在线付款</a>
                    <a href="" target="_blank">帮助中心</a>
                    <a href="" target="_blank">售后服务</a>
                    <a href="" target="_blank">配送范围</a>
                    <a href="" target="_blank">留言反馈</a>
                </div>
            </li>

            <li >
                <a href="./shoppingcar.html" rel="nofollow" id="btn-login">
                    <span class="iconfont icon-gouwuchekong valnav-icon"></span> 购物车 
                    <span class="text-primary">(0)</span><!--购物车 -->
                </a>
                <div class="gwc">
                    <span>您的购物车中没有商品，<a href="">先去选购吧！</a></span>
                </div>
            </li>

            <li >
                鲜花礼品网:国内领先鲜花网品牌
            </li>



        </ul>
    </div>
</div>
<!-- 顶部导航 End -->
<!-- 头部 -->     
<div class="header clearfix">
    <div class="header-container center clearfix">
        <!-- logo -->     
        <div class="left-logo">
            <a href="./index.html"><img src="./image/big-logo.png" alt=""></a>
        </div>
        <!-- 搜索 -->     
        <div class="center-search">
            <form action="">
                <div class="search-box clearfix">
                    <span class="icon-questionmark"></span>
                    <input type="text" placeholder="商品类型">
                    <button class="fr">搜索</button>
                </div>
                
            </form>
            
        </div>
        <!-- 联系我们 -->     
        <div class="right-logo">
            <div class="service-item " >
                <span class="icon-Phone"></span>
                <div class="service-item-info">400-889-8188</div>
            </div>
            <div class="service-item">
                <a id="header-chat" href="">
                    <span class="icon-headset"></span>
                    <div class="service-item-info">在线客服</div>
                </a>
            </div>
        </div>
    </div>
</div>
<!--  大图登录 -->
<div class="banner">
    <div class="container">
        <div class="regbox">
            <ul class="login-tabs">
                
                <li class="register-byphone active">手机号登录</li>
                <li class="register-bymail">二维码登录</li>
            </ul>
            <div id="register-phone" class="login-form register-form register-form-tel">
                <form action="">
                    <div class="input-box">
                        <span class="iconfont icon-phone"></span>
                        <input id="id" name="id" class="account" type="text" placeholder="请输入手机" autocomplete="off">
                    </div>
                
                    <span></span>
                    <div class="input-box">
                        <span class="iconfont icon-lock"></span>
                        <input id="pwd" name="pwd" class="pwd pwd-input" type="text" placeholder="请输入密码" onfocus="this.type='password'" autocomplete="off">
                    </div>
                    <button>登录</button>
                </form>
            </div>
            <div id="register-mail" class="login-form register-form register-form-tel">
                <img src="" alt="">
            </div>
            <div class="bottom">
                <ul class="other-login-ways clearfix">
                    <li class="login-way login-qq fl"><a href="/"><i class="icon iconQQ"></i><span>QQ</span></a></li>
                    <li class="login-way login-ali fl"><a href="/"><i class="icon icon-zhifupingtai"></i><span>支付宝</span></a></li>
                    <li class="extra-r fr"><a href="/">登录账号<i class="iconfont icon-jiantouyou"></i></a></li>
                </ul>
            </div>
        </div>
    </div>
    
</div>
<!--  大图登录 End -->

<!-- footer   -->
<footer>
    <div class="footercenter center">
         <div class="ft-nav">
            <a href="/">首页</a>
            <a href="/" target="_blank">关于我们</a>
            <a href="/" target="_blank">媒体报道</a>
            <a class="" style="display:none" href="" target="_blank">联系方式</a>
            <a href="/" target="_blank">企业团购</a>
            <a href="/" target="_blank">花店入驻</a>
            <a href="/" target="_blank">友情链接</a>
            <a href="/" target="_blank">在线补款</a>
            <a href="/" target="_blank">为什么选择花礼网</a>
        </div>
        <div class="ft-site">
            <p>
                <a href="/" rel="nofollow" target="_blank" title="中国花卉协会会员">中国花卉协会会员</a>
                <a href="/" rel="nofollow" target="_blank">中国电子商务协会会员</a> ICP经营许可证：<a>粤B2-20050744</a>
                <a href="" rel="nofollow" target="_blank">粤ICP备09171662号</a> <span class="icon icon-beian"></span>粤公网安备44030502000373号 Copyright © 2005-2020
            </p>
            <p>花礼网 <a href="/">www.hua.com</a>
                <span> 深圳市百易信息技术有限公司</span> 
                中国领先的鲜花礼品网，品牌鲜花网服务，鲜花速递专家！
            </p>
            <div class="ft-auth">
                
                <span class="icon icon-slogan"></span>
                <a href="" target="_blank">
                    <span class="icon icon-top100"></span></a>
                <a href="" rel="nofollow" target="_blank">
                    <span class="icon icon-icp"></span></a>
                <div class="ft-auth-border">
                    <img src="./image/QQ2.png" alt="">
                </div>
            </div>
    
        </div>
        <div class="ft-link">
            <span>友链</span>
            <a href="" target="_blank">中华取名网</a>
            <a href="" target="_blank">深圳房产网</a>
            <a href="" target="_blank">卷皮网</a>
            <a href="" target="_blank">腕表</a>
            
            <a href="" target="_blank">苗木</a>
            <a href="" target="_blank">佐卡伊珠宝网</a>
            <a href="" target="_blank">钻石婚戒定制</a>
            
            <a href="" target="_blank">青少年艺术教育网</a>
            
            <a href="" target="_blank">淘狗网</a>
            <a href="" target="_blank">礼无忧网</a>
            <a href="" target="_blank">宠物狗</a>
            <a href="" target="_blank">机友网</a>
            <a href="" target="_blank">礼物网</a>
            
            <a href="" target="_blank">新三板</a>
            <a href="" target="_blank">商标注册</a>
            <a href="" target="_blank">眼镜店</a>
        </div>

    </div>
    
</footer>
<!-- footer  End -->
</body>
</html>
<script>

$(function () {
    
        $('form').on('submit',function () {

            axios.post('/account/login',{
                id:this.id.value,
                pwd:this.pwd.value
            }).then(function (res) {
               let {data:{msg,code,data}}=res;
                        //询问是否理解去登录
                        console.log(data.u_id);
                if (code == 200) {
                     
                        localStorage.setItem('datass', JSON.stringify(data));
                        
                        layer.confirm("登录成功!是否跳转到主页", {
                            icon: 1,
                            btn: ["是", "否"]
                        }, function (index) {
                            layer.close(index);
                            location = "index.html";
                        }, function () {

                        })
                    }
            })
            return false;
        })
    
           
   
    
    })
</script>